Add a test for append_track_charges