Issue #222: Added tests.