Update tests.sh script
Fix getopts in tests.sh script