making src/testing async-friendly