modified parsing args in test.c to avoid seg error