Added tests for view module