Add unittest for worksforme bug.
Merge pull request #2539 from quickfur/issue10683

Add unittest for worksforme bug.