fix error in edgeworth pdf, tweak tests