Logged In: NO

The quickfix is to open mysql client and run the sql:

insert into test (tcid,pid,descr,level) values (0,0,"Root test case",1);
update test set tcid=0 where tcid=last_insert_id();