fixed unit tests for PHP >= 5.4.29 or >= 5.5.13