Add tests for class View