Fix tests for jquery backcompatibility