Refs 8693. Fixed mistakes in test.

Not being very used to python i'd made a few syntax errors, as well as a few copy/paste errors.