implemented ghost tests