added unit test for generation IO