Test processor refactoring