updated serialTest.c