Updated tests to pass on php 5.3