Adding implementation of isSameFile and its unit tests.