Add marking repository notifications as read and tests