Fixes and tests for the IPN.

It checks if the test_ipn field matches the environment.
Only live request are verified upon PayPal.