When it comes to implementing an IPN based solution it can be difficult to test the IPN page you craft. To help with this you should visit the PayPal developer center and look for there IPN testing area, from here you can post test cases to your IPN page to ensure it is working correctly.