implement getAllWorkspaces() and associated tests/implementations.