Add test for totals updating

Discussed here: https://github.com/radar/spree/commit/4c49afc3552e61e14a136c2f7131e90b2d9c4e82#L0L81