Add unit test for get post command