Moved the test code out of pageinit event handler and replaced with Qunit.start()