Error in test for filename