add tests for views