fix NullPointerException in ktest