Fixed failing tests using setContractClasses methods.