Added Tests for Pattern