Added unit tests for task-based async methods