add test to not strip non-http protocols
(cherry picked from commit 87f2ef6031c93e40da3aaa8dad5777be1853ff68)