Added safety checks to basic test

In non-AMD mode, test for existance of require & define.  Test that they
don't exist, specifically.
Added safety checks to AMD test

Check that we have both require() and define().  Somewhat redundant as
we wouldn't have got this far without them, but it keeps the number of
tests for each method the same, thus making testing easier.