add test, and also set response encoding to utf-8