Improve unit test of builder of 'range' constraint