Remove test function trySetUserAgentEnabled()