Add tests for FileHandler class