Use Pattern Object in Test