Add tests for UserView class