Tests would fix this sort of oversight, but how to do them...