add tests for post and put