fixed test for User.createOrUpdate