Fixes test for User.random