Refator testGetWorkspaceSwitchLinks() method.