test post and put function