Moved switch creation to setUp -> breaks unit tests, why?