This is unexpected indeed. I’ve checked in unit tests, but the hotstname test-server.co.uk do not fail in the checks on 2.53 branch or (2.53.2 tag which is before more fixes for hostname landed). What version of snapd do you have? Please attach the output of snap version and snap get system -d.