add range as allowed input type
add tests for range input type