fixed a couple minor errors when trying to compile read_test