KNOX-319: Fixed test issue causing build failure on windows.
(cherry picked from commit 25c3c695422ded37bf0dfd93e933bccc2b1dc45b)