fixed test case for php 5.3