Done some refactoring in windows.psm1
Added tests for windows.psm1 module