wrote more tests for views