What tests are you actually using this for? It's not much code to actually create a "real" stub certificate (depending on what fields you need) - having separate constructors for testing is nasty :-/