Add functional tests for example metadata

Add functional tests that confirm example metadata is passed to
beforeEach/afterEach correctly. Completes #105.