Given how core this code is, I figure it should have it's own testsuite.