Write tests for the workspace switcher block

@jeqq I just wanted to understand why we needed to inject the values there. But your explanation makes sense, so all is good. I will merge this now.