test for post endpoint