Fix dogtag unit tests

Recent changes have broken some of the Dogtag unit tests.
This patch fixes the tests to be in line with the current plugin
implementation.

Change-Id: I0302f231ca8ab60caf2735d5950cb828ad3b4184
Closes-Bug: 1320934
Merge "Fix dogtag unit tests"