fixed errors with several test scripts