Added Dependency
Added couple more tests
Avoid duplicates in end result