Add unittest for worksforme bug.

For bug: https://issues.dlang.org/show_bug.cgi?id=10683

To prevent future regression.