doctest for read.gc