fixed testcase for php 5.3