update tests to use async methods