The current state of the tests is embarrassing to discuss. We should purge them and rewrite everything from scratch.