patched up 'test.sh'.