user_info renamed to profile, added tests, work with relation