Fix tests so they work with jQuery>2.0 as well as the older versions

Changed .live handlers to .click etc that works in all jQuery versions