Add new range check function
Add test for range_check function