Add test for dependency-caching bug

The bug is that if a "block injection" service has a dependency,
and the block throws an exception, then the next resolution of the
service fails to recalculate the dependency.

GH #36