test failing only with PHP 5.6RC2, works with 5.4 and 5.5