Added user_mode tests