Added main view unit test