fixed uri assertion for when overriding host