MODE-2393 Fixed invalid unit test.
Merge pull request #1351 from hchiorean/MODE-2393

MODE-2393 Fixed invalid unit test.