replaced and expanded qunit tests to increase code coverage, improve test organization, and make test descriptions more explicit