tests for parse(IO)