fixed the error code problem with test.sh