wrote integration test for the buyong of a product