Improved Heartbleed test script