Add unit test for https server