separate test configuration logic from tests