added pattern with test
more pattern tests