Simple test with closures