refectoring Plugin::dependencies()
fix test case