Added tests for dependency deletion