Add test for monetary value formatting

Tests for issue #3126.
This problem pops up after upgrading json-spirit.