Moved method getUserRoles from the test controller to the utils