add test for checkexists