make 1.8-compatible.
use more representer_for in tests.