This kind of thing is OK for temporary code, but should be moved into proper unit tests before merge.  So I did so (above).