Fix tests
It seems like with PHP 5.3 the result of a ternary expression cannot be passed by reference