Test case for #1392

(cherry picked from commit 2a6bf5ac8e52dde64d8214a643fbbd0257f11cbb)
Fix #1392

(cherry picked from commit 1d40665d42e291f98f84de29bd7b8d0660200f4a)
Merge pull request #1394 from sjinks/issue-1392

[1.3.0] Fix #1392