added unit tests for async methods