custom matchers for testing blocks