Fix setup and teardown functions being run as tests in file_tests