Rewrite some testcases.