Added test for cancellation as per normal pattern.

This will prevent the loader doing anything if it is cancelled
before execution starts, for example if blocked in a queue of
other AsyncTasks.