Fixed a broken testcase under 2.x