Add more assertions for get_fees_total(). #1848