Add tests for isPending, isRunning, isCompleted and isAborted.