fix some dependency issues in test automation