change is_in_test_directory to use split & any instead of regex
return empty string instead of 0 from is_in_test_directory