Added test case for MainView