Fixed file test bug