fix typo causing deprecation warnings during tests