added tests and new user attribute.