Test for new HEAD function inside HttpSocket
Fix spacing to conform to coding standards