mock command presence check