rewrite posts for unit test