Added more testcases. Made it possible to create empty switches.