Added a Test for printing in simple closures