added debug output
added tests for noFiles scenario