I don't know exactly what needs to be done for your setup, as I'm unfamiliar with your system. If you're using the ADL Test Suite, you may want to do the testing locally on a standard desktop (not a server) to avoid any complications.
I know the ADL Suite has very specific instructions for how it should be set up and run, including placing XSD files on your desktop. Once you get the test suite running, you can point to a local copy of your course files. If you're testing a local copy of your course in the ADL test suite, you shouldn't need to add the document.domain code; it should work as-is.
Alternately, you could try testing your course in the SCORM Test Track provided by Rustici Software. It's free, more robust than the ADL's test suite, and includes good diagnostic feedback.
http://scorm.com/scorm-solved/test-track/
- philip