Refactored test configuration to be reusable.