Added test for PR #387