Made library more testable by allowing PAYPAL_TEST to be changed at runtime in tests
Added tests for payments form
More robust test for form