Fixes tests on php 5.3