Added test to compare toQuery against jQuery.param()