debugged closure for six line tests