set up sleep correctly when not supplied in test mode