Fixed bug in NASM generator
Updated test script