unit tests for views