wrote functional test for paypal