tested MAX and MIN functions in UInt and Int