Bash script to test web service functions