Various fixes to test and python-dec
enabled debug options in makefile