Write tests for CPU