Remove some dependencies in test