add pattern matcher
add pattern expectation