Fix tests on php 5.3