Updated HasRoleTest to work with changes.
Fixed problem with getPermIds sometimes returning associative arrays.