add qunit to the codebase
Added a unit test and working code for the simple case of waiting on the loaddata event to resolve a successful promise