Write tests for the workspace switcher block

Do we really need to inject dependencies here?