Kudos to Andrew Gallant for the test suite.