Fixed the broken tests so that BeforeEachExample and AfterEachExample are called the correct number of times.