Test: configure middleware hostname parsing

Hello guys,

Not super familiar with this project, but started digging in and noticed that one of the tests was pending, figured I would finish a todo since I was in there...

Hope it helps!