engine : Fix DAO tests TemplateOwner can't edit template and add/edit vnic in userportal.

Fix DAO tests

Change-Id: I11cf9a0979b5cf1000406df8c5cb0c2e1a7625b5
Bug-Url: https://bugzilla.redhat.com/953043
Signed-off-by: Ravi Nori <rnori@redhat.com>