Updated tests
Fixed pattern bug.