add rest test for post and put