Fixed some dependencies in the tests.