Fixed tests on php 5.3