fixing the rand tests