Add assembleDebug and assembleDebugTest methods + unit tests.