Add test for Agent.prototype.getUnit method
Support unit.pattern property
Merge pull request #181 from golyshevd/i168

I168