wrote integration test for the buying of a product