Fix examples to follow new env tuple standard

This brings examples in line with the recent Middleware change.