rename cctestW to cctestandsetW

because it both tests and sets ...
Use a subroutine for target compiler tests

no functional change ... hopefully