[AUR-3018] Implements joins using CouchDB in Datastore

- Added guard against test data not having the "data" property.

Change-Id: Ia537a7715f2b36737d20583623ed24a1fb515c5d