make robust leave test