fix indeterminate test when calling ensure