Remove various testing dependencies, which breaks some circular
dependencies.