test script to run from the command line