reuse closure when creating and testing