Add tests for WorkspaceFactory