Fix dependencies in unit and bench