Fix #411 - Fix asm.tabs and write test cases