cleaned up some code in the test .py file.