Impement missing UI context tests and fix role edition.