added tests to io_lib