added a shell script for running functional tests.