Adding unit tests for workflow DB model

Change-Id: Ie46b2e09bf29ba99c8417c5b1f0640d60953b1ad
Merge "Adding unit tests for workflow DB model"