Move opener setup into a separate helper function
Simplify test setup