fixing user, role and permissions upgrade unit tests according to recent fixes