get rid of syntax deprecation warnings in test suite