Add tag to post test

- Added the unit test to test the insert of a given tag to a given post.
- Added helper method in the Contract. It get the id of a post in a Uri