Fluid 5368: Added a unit test to demonstrate FLUID-5368 issue.

FLUID-5368 issue: http://issues.fluidproject.org/browse/FLUID-5368

This pull request is based off the pull request for FLUID-5358: https://github.com/fluid-project/infusion/pull/510