Fix priorities selection for non-storage roles
* fix typo, which in some cases seted wrong priority
* add tests for priorities selection

Change-Id: Id76386935b20640531aff431c3816ca3ca7c1839
Merge "Fix priorities selection for non-storage roles * fix typo, which in some cases seted wrong priority * add tests for priorities selection"