Added a try/catch to only add the dependency and not reflect it if it comes from an external lib
Fix the tests for internal dependencies