some changes to have behavior like old ktest