added tests to make sure the post endpoint can handle all 3 formats