Refactored example test