Update FileHandler

* Modified function getFilesOfDir to take dir of type File as an argument to make it more resusable. It does not return a hardcoded error message any more, but throws an exception if dir is not an existing directory.
Update FileHandlerSpec

* Minor changes to make the structure of tests more similar.
* Implemented tests for the scenarion when getSourceFiles is called with args directory and file.