Making sure referencing closure parameter works