Optimalized detection of correct inventories for patterns.
Reduced loading of unused data.

Signed-off-by: selmeci <selmeci.roman@gmail.com>
Fixed bug with inventory detection.

Signed-off-by: selmeci <selmeci.roman@gmail.com>
Added test's facts

Signed-off-by: selmeci <selmeci.roman@gmail.com>