Modify FileHandler, add test implementation

* Modified order in which the existence of test case files and map file is checked.
* Modified error codes to reflect the same order.
* Added implementation to the test for the scenario when getSourceFiles is called with a directory path.