analysis: give error on non existing role type + fix testcases