datastore: add tests for query proto conversion.