Add missing unit test for decimal parser.
Get rid of method with ill-defined contract and stop using it.