Add getFileNames unit test
Correct naming
Add unit test for scan method