Make test ignore JSON semantics

One fix for Symfony 2.2, related to #607 and symfony/symfony#5506