made testsys.c self contained