Ensure roles created by unit tests have correct attributes.

Change-Id: I04817c992fe66d4937960a3e5dedb954606a4334
Closes-bug: 1354417
Merge "Ensure roles created by unit tests have correct attributes."