fixed some bugs for zero and unit ideal decomposition
added unit and zero ideal decomposition tests