add tests for add-one-pattern