Test return of closure