Adding testcases for getMinimumByComponent, getMaximumByComponent and a typo fix.