changing logic to set to use test server unless preferred_server is explicitly set to 'live'