Added mode tests, mode now gets transformed into a number in the math code
Fixed last mode to check for mode instead of median