Range queries with smoke test

I got range queries working well enough to run all our local recipes.  Looks like there was just a logic bug on the end range and then updating to the newer interface.

Added a very small smoke test that helped me debug.