fixed some tets in php 5.4