first pass at rearranging the basic script so that it can be largely reused by other tests
(#325)
fixed silly errors, seems to run
(#325)
removed check image output
(#325)