fix unit tests to run on php 5.3