This isn't an issue you introduced, but seems to be an issue with all the existing scanner tests which we should fix sometime:

I think it's scary that we have the exact same logic in the implementation and the test. How will the test catch any errors if we have the same error both places? It would probably be better to manually type out the expected model structures in the tests.