Added test for persistence invoice updates