Write tests for the workspace switcher block

Let's add another assert to check that `$_SESSION['workspace']` was set to the correct value as well. I don't know if this is considered ok when doing "unit" testing. But it feels like something we should be testing anyhow.