pattern-test

Write and run pattern tests