Added code to test negative mod value.
Added expected mod value.
Started mod function code.