I think you need to log into the sandbox web site with your developer account before it will work properly. That might be why you are experiencing odd behavior. There are more details about why it failed stored in the session. If you have eCart you can get them from Bindings, otherwise you can dump the Session onto the page and find out more about why it is failing.