Refactoring of OpenCPU tests.