Add server name test

Depends on #595 and #594