QUnit with some initialization tests.  Refactoring because I didn't write tests first.