Fix test.py by removing a duplicate function

removed a duplicate test_mod function.