More test case added and update method added