fixed ProcessContractTest. Also removed an unused method and test cases
testing it