Fix FunctionTest::tearDown()