fix NPE in delete item test