updated valid_file unit test