Cleaned up a bug in test.py

removed a duplicate test_mod function.