Fix typo in credits, which fails reversal creation
Add test for settlements and credits