Use set instead of get/create pair
Use set method for links as well
Added data conflict error
Finished tests for reference implementation