added basic unit tests for MainController