Adding tests for MainView