Fixed all the async unit tests and updated the documentation