Test remote methods for errors
Remove unused imports in tests