Minor fixes for share dialog test