ed: simplify test