I don't love this. Let's figure out a way to hook into the code for testing from the outside.