[V3] Rails3 compatibility: test: replace deprecated errors.on

rebased #401.