fixed bugs on test_wu and io