Refactored windows.psm1
Added more tests for windows.psm1