fix repeat-operation regression

- also added test to 'test' branch
test: basic repeat-operation