added verbose flag to test script