Refactor useless benchmark into test.