test refactoring to make travis happy in PHP 5.3