updated `updatePost` and it's fully tested