Added tests for edit method from cart