Fixed bug in generic file test.