Fixing a typo
Updated test code to avoid deprecation warning during tests
Merge pull request #3441 from Nopik/patch-1

Fixing a typo
Merge pull request #3442 from Nopik/tests_fix

Updated test code to avoid deprecation warning during tests