Added unit tests (and fixed) composition WorkspaceManager.