added tests, added put & deleting of posts