added test for dgit list and fixed a related bug.