Implemented tests for main view