test: add test for issue 18636
test: add test for issue 18636

Updates #18636

Change-Id: I143c670c3940231e29f1814e0a03165682f53243
Reviewed-on: https://go-review.googlesource.com/43621
Reviewed-by: Joe Tsai <7277d7402195d5c2006c89f45718cf82bb3e527f@gmail.com>

codestation/go,Cofyc/go,polyverse-security/go,vsekhar/elastic-go,Cofyc/go,derekmarcotte/go,codestation/go,CAFxX/go,akutz/go,polyverse-security/go,derekmarcotte/go,vsekhar/elastic-go,polyverse-security/go,codestation/go,polyverse-security/go,golang/go,CAFxX/go,josharian/go,akutz/go,nawawi/go,nawawi/go,cloudflare/go,Cofyc/go,codestation/go,golang/go,codestation/go,akutz/go,josharian/go,ImJasonH/go,ImJasonH/go,nawawi/go,josharian/go,nawawi/go,codestation/go,derekmarcotte/go,Cofyc/go,CAFxX/go,codestation/go,josharian/go,polyverse-security/go,ImJasonH/go,akutz/go,golang/go,CAFxX/go,nawawi/go,josharian/go,vsekhar/elastic-go,vsekhar/elastic-go,vsekhar/elastic-go,derekmarcotte/go,CAFxX/go,vsekhar/elastic-go,vsekhar/elastic-go,cloudflare/go,ImJasonH/go,josharian/go,josharian/go,nawawi/go,codestation/go,nawawi/go,cloudflare/go,akutz/go,polyverse-security/go,cloudflare/go,cloudflare/go,golang/go,derekmarcotte/go,nawawi/go,CAFxX/go,akutz/go,cloudflare/go,Cofyc/go,josharian/go,christopher-henderson/Go,CAFxX/go,ImJasonH/go,cloudflare/go,polyverse-security/go,Cofyc/go,polyverse-security/go,derekmarcotte/go,derekmarcotte/go,golang/go,derekmarcotte/go,golang/go,ImJasonH/go,cloudflare/go,vsekhar/elastic-go,akutz/go,golang/go,CAFxX/go,ImJasonH/go,akutz/go,golang/go,Cofyc/go,Cofyc/go,ImJasonH/go