Make unit tests compatible with PHP 5.3 and 5.4