Refactor and Add tests to XpressionPostProcessorService