add test cases for invalid files