[BZ-978979] add test case demonstrating how negative patterns work