Move test.c to cw.c