Added tests for PendingResult