rewrite asm using bytecode, start tests