reader_test: changed to nested class; removed unnecessary imports