Packaged and tested the test.sh script

ready for submission after we double check everything and add more tests