Added unit tests. Fixed name of maxima min & max