Added test-file function