Improved isInstanceOf checks in tests for contain matchers.
Merge pull request #6 from cheeseng/ticket-98

Improved isInstanceOf checks in tests for contain matchers.