Fix tests.
Fix tests.

As a result of changes to our API, tests were failing. In fixing them I also
found that we had a falsely passing test that was returing in the proper order
by accident but was actually not sorting properly. This has now been fixed.

raster-foundry/raster-foundry,raster-foundry/raster-foundry,kdeloach/raster-foundry,azavea/raster-foundry,aaronxsu/raster-foundry,kdeloach/raster-foundry,aaronxsu/raster-foundry,aaronxsu/raster-foundry,kdeloach/raster-foundry,azavea/raster-foundry,kdeloach/raster-foundry,raster-foundry/raster-foundry,azavea/raster-foundry,azavea/raster-foundry,kdeloach/raster-foundry,aaronxsu/raster-foundry,azavea/raster-foundry