Rewrite one test into a less error prune way.