fix getUnread / getInbox
add tests to make sure getInbox / getUnread work