close method on server + more complete tests