fix issue in test and php 5.3 compatibilities