Fix tests
Merge pull request #1090 from nlegoff/fix-test

[3.8] Fix unit test