Added unit tests for IO helper