We should not call switch user here. Instead we need to assume appropriate users credentials are there. So in the base test class add a call to login as current user and then in the test which want to switch they will call a login as the user2 when needed.