[#2155] Fix getTestUser.

Problem
------

Domain mixins could not be defined as `domain` test user is defined only on domain client machines.

Changes
-----

Return `None` when test user is not defined instead of raising an exception,
`error.filename` is an optional attribute of `WindowsError`.

How to test
-----

reviewers @adiroiban 

Please check that the code changes make sense.