Add regression test for issue #1895
Add regression test for issue #1895

Thanks to Feiko Nanninga for the test case.

afh/ledger,afh/ledger,ledger/ledger,ledger/ledger,ledger/ledger,ledger/ledger,afh/ledger,ledger/ledger,afh/ledger,afh/ledger