datastore: Add key conversion tests.