Add $.delegate function, cache selectors in test suite