added managers parameter. Increased branch coverage