Fixed misleading test

It didn't look quite right and when I debugged it in jQuery sure enough
it took 2 parameters rather than 1 (both values passed on)