Closes gh-9998
- replace Before with BeforeEach - replace RunWith with ExtendWith Closes gh-10934
Issue gh-10367