This file needs tests.  It's a _perfect_  situation where you can use some tests to make this explicit about what's handled and expected.