Fix tests (broken by UTF-8 support): must duplicate instructions in counted repetition.