Add tests for updating workspaces
Fix some problems updating workspaces (renaming and setting as the default one).