Add tests for filemanager and add new method 'isdir' in filemanager.