add test case for custom domain data
handle missing ES index