Was passing the wrong jQuery context to tests.