Provide selftest for issue #114.
Provide selftest for issue #116.