Fix test breaks in magenta lib