Fix for server options and unit tests for https.