Add additional unit test for #2414.