Ensure that the Task gets completed before exiting the Unit Test method

There are methods that return a Task<T>. While testing such methods, a common mistake is to make assert statements, without waiting for the task to complete.

While I wrote a few test methods like the above, all those test