Improved isInstanceOf checks in tests for contain matchers.

def isInstanceOfA(b: Any) = b.isInstanceOf[(Int, String)] 

changed to:-

def isInstanceOfA(b: Any) = 
        b match {
          case (_: Int, _: String) => true
          case _ => false
        }