Added tests for IO api