Fixing some UI tests and fix a bug in capability management (no more lower bound as this wasn't making any sense)