bunch of fixes in test.sh and jellyfish.py