add tests for certificates

this adds both positive and negative tests for create and show
certificate

Change-Id: I6486838e7cfad322980f95e6ae80ff8947d14b95
Merge "add tests for certificates"