tests all mod operations