Fix typo; add test
Merge pull request #2447 from danielgtaylor/fix-typo

Fix typo; add test. Fixes #2447.