Tests. Lots and lots of tests.