Moved util methods from windows to utils(with tests)