Add test for worksforme bug 6405.
Merge pull request #3974 from quickfur/test6405

Add test for worksforme bug 6405.