Add TestCase.assertMatch

This patch allows pattern match test in a TestCase:

```
class MyTest extends TestCase {
  function testMatch() {
    var json = { foo: [ 1, 2, 3 ], bar: "xxx" };
    assertMatch( { foo: [ 1, 2, 3 ], bar: "xxx" }, json);
  }
}
```