- Added unit test for SearchNextTrainProcessor
- Done some refactoring