rewrite test by coffee.