Fix examples test by setting a context prior to validation