tests for optional beforeEach resolver