New script test.sh tests the API