Re-added getPattern method

Not sure what was intended here, but the reason the tests are failing is because the [get|set]Pattern methods were removed somewhere along the line.