test checkexistence