Bug with range values was fixed. Tests were added