Added a test to check for ssl man-in-the-middle attacks