Bug with range values was fixed. Tests were added  by mkolisnyk