unittest: add a check for not exists