Added test to validate fix for issue #286.