Refactored create client window tested.