Added email confirmations and integration test for buying a product