Correctly reports unused paths if no dependency

Also added a  few tests to build upon