Added test for assembler module (incomplete). Fixed bugs in assembler
module (partially-tested).