Implemented tests for insert and update post model