Added test to read function.