Fix ipn verification bug

Fixes a string formatting bug where if the request code was None it failed to raise an IpnError. Also added more testing for IPN verification.