updated qunit test to be more accurate