added tests for calling file directly