check that update_cached_amounts actually updates the amounts