added completePurchase tests