fixed a couple of deprecation warnings in the tests