Add testing module.
Add self-testing to assembler.py