Do not call setTestEnvironment in proxy/piwik.php, TestingEnvironment handles that.