Write a reusable test for checkout.