added tests for user view