minor changes to tests.py, refs #373