Working on unit test for read.c