Making sure test runs under jQuery