Test refactoring

- Generating list of patches by a simple method