Add tests for num_range