added unit tests related to files handlers