Rewrite a test to avoid a fatal on php 5.3