fix Unittest for resource loading under windows