Create module for testing what a function (closure) prints to STDOUT