Added tests and method for filecomparator