Added unittesting system and made the target command compilations global.