added test for setting user_id to user.id