added real tests for IO module