Write tests for the workspace switcher block

We don't need to pass all the methods into getMock(), in our tests we don't need it at all. I have fixed this.