ticket:5 add tests for views