Fix test dependencies and run tests.
