Add unit tests for getDependencies