Fixed test and removed unused dependencies.