Refactoring: Create test element in top level beforeEach