Adds test for bare connections and empty template
Adds server code