Use valid closure in test; allow closures in arrays