test for apply emit cancelling