Added assemble command test. Fixed issues in the assemble command found during tests.