Fixed bug in getFeaturesMinMaxValues, added unittest.
Merge "Fixed bug in getFeaturesMinMaxValues, added unittest."