Clarify query_objectids() documentation
Add tests for query_objectids() and query_objectids_async()