Write tests for the workspace switcher block

Yes, we need to do it. To test the getWorkspaceSwitchLinks() method we need to have mock objects (entities) with known ids (to create the array with links).