Added a test for issue #182
Issue #186