Added testing code for role