CPUTest.js added to factor out common functionality between cpu tests.