add unit test for userview