Bugfix SUB and add a working unittest for SUB and CC flags