Refactored duplication out of my tests. yay metametameta!

[git-p4: depot-paths = "//src/minitest/dev/": change = 9574]