Tests: Separate beforeEach/afterEach failure tests

Since the existing test always would've failed on beforeEach,
thus making the afterEach-introduced failure irrelevant/untested.