Fix failing test after rand change