Self-testing of multicore processors