Added test for file handler