Moved some jQuery-specific test methods into the core module.