add a unit test for isFile()