Test cases as data
refactoring