fix tornado 4 test compatibility