Select a random level from the selected levelset
Fix tests