refine style

moving test-case specific thing into test-case.