fixed tests for php 5.3