Adds db api tests for Racks

Change-Id: I4849dd9b8b710618e52e06d8254977d56331549a