The Rails tests use explicit ordering to work around this discrepancy.
User.first without an ordering is technically undefined. It could be any row.
Since you're usually doing account.users.first, you could :order => 'id asc' on the has_many.
jeremy