fix testall to work with distribute
fix testall