tests added for cleanBeforeCheckout