Fix promise tests: don't depend on $.Deferred.
Cross-platform matchesSelector, fix ALL tests.