t5304: use test_path_is_* instead of "test -f"