adds tests for mainView