Added update controller ,repository and its test