Fix POST and PUT test case error

- I update the local variable so that it won't conflict to global variable, possibly this is the cause of duplicate id error thrown by 'POST should return json' test case.

- PUT test case is throwing an error because the response variable is returning an undefined value. It is because the defined url link is pointing to a valid url.