testing of post action api