tests for views