check if res_id is unique
Use dictionary literals in test cases
Insert TODOs
Return same res_id for existing sessions
Check res_id is same for same session, different for new sessions
Merge pull request #143 from rcchan/pr-merge

 Fix and clean up unit tests from pull requests