test for user cancellation