Fully unit tested current debian_package.py

debian_package.py is not fully written yet, but what is written should
at least be fully unit tested.