Added update functionality and tests to update products