Bugfix in test on non-Win platform