Updated docs/polytech

  * complete patterns for ID matching, complete test suite for them.

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>