Added debug and trace loggeing for better trouble-shooting
Add test to verify resource not registered as visited comes up as not-visited