Added tests for post method
Added tests for put method