Add tests for SERVER_NAME being trusted