[PATCH v2 03/18] tests/lib.sh: Add check if variable exists to test_value_in_array