ISSUE-6: added test
ISSUE-6: resolve #6 by throwing when modulus is zero
Merge pull request #17 from Airblader/ISSUE-6

Issue 6