closure tests