Fixed code to determine whether protocols differ in host and request, added tests for that
Refined tests with better success messages