Add unit test for create post command