Update `toMatch` to also support closures.
Updates specs.