Use test fixture to avoid code duplication.