add test class for file handler