test getTotalAmount in the cart-tests