added file test with invalid filepath