Simplify testcase implementation.