added test for maincontroller