Fixed a test failure in FileHandlerTestCase