added test for bad modulo and fixed test accordingly