Added tests for views