fixed cputests.c, added shell script for testing