adding test for file handler