Add cancel() to test