fixed asmlib test and added repeat option