The test has to involve something that is a normal behavior. For a worm, crawling to see food/shelter is a normal behavior. For a mantis, probably not.
Mantids tend to stay in one spot and strike prey, so (assuming mantids can see in color, for example, which I don't know if they can or not)...