Refactored tests for OperationProcessor