add integration test for purchasing a product