memory cleanup after failures
simplify `package_inspect`
test nested dependencies