Updated test code to avoid deprecation warning during tests
Merge pull request #3442 from Nopik/tests_fix

Updated test code to avoid deprecation warning during tests