I've done nothing today but write test code so this whole thing is a hot
mess. But it works.