implement gate resize tests