unread related bug fixed, test added.