added tests for views