fix tests on php 5.4