That would be more difficult to test, but that is possible. Hiding in forest/tall gras does work in the appropiate places, so the code is at least able to tell on which groundtype an unit is, but it somehow goes wrong for movement.