Updating tests to use non-deprecated QUnit functions.
Fixed spacing.