Added test for prompt destroy before response sent