More work on unit tests. Modified the tests to make use of QUnit modules.