tests and implementations of modulo functions
rename modulo functions