Fix phpunit failing test case with serialized content