Add unit test for asm code.