Fix null-bug when using cleardb from commandline.
Add possibility to force a testid.