Cleaned up a bug in test.py

removed a duplicate test_mod function.
Merge pull request #1 from robertdoidge/master

Fix test.py by removing a duplicate function