added tests for filetools