add test for readEntries