Fix tests after route_path rename
Use an ABC for SQLResource

This gives a clear error message when someone forgets to
set context_query