Added unit tests for the views.