There are tests, but I think there may be official tests that could be used to hunt down all the corner cases.