Nice test using closures