Implements unit tests for issue 3762.
Implements unit tests for issue 3762.

Some work was needed in order to have the test case in a format that could
both reproduce the issue if unpatched and work when patched.

AndreyZM/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge,AndreyZM/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge