[BUGFIX] getMinHeight returns the max-height

* Replaces typos

Fixes #15
[TASK] Adds unit-tests for calculation functions