Made test_loader more robust, tests are done.

Tests are not actually done but that is all the jasmine I am willing to
write.  Tests that are commented out should run but don't because of
synchronous issues.