Add support for regex based matching of expected failures.
Merge pull request #392 from mithro/test-expectations

Add support for regex based matching of expected failures.