fixed Processor test cases for python 2.7