Random generator successfully changed in unit test