fix tests for removal of host and port from templates