Add test.sh to automate testing of working samples