Close some figures when tests complete.

Unclosed figures cause warnings on subsequent tests.
Merge pull request #494 from QuLogic/close-test-figures

Close some figures when tests complete.