Test case for issues/2331