add basic test for the post method