[PATCH v2 02/18] tests/lib.sh: Add function test_value_in_array