Add test for monetary value formatting

Tests for issue #3126.
This problem pops up after upgrading json-spirit.
I've checked that this tests fails with 2227389 and succeeds without it.