Improved ShoppingCart add_item method and corrected tests