async distribution optimization
fix indentation on test