Write tests for the workspace switcher block

Fixed