Fixed bug in getRequestProtocol() which caused the method to return
"http" instead of null on console requests
Fixed unit tests which were not working on console requests