Added some utility methods to t/scratchpad.t for later use.