added testing for views and models