[test] Adding tests for createServer