Adds test for default values in closures #236