[tornado] fix unit tests