FLUID-5381: Added a unit test to demonstrate the FLUID-5381 issue.

The bug ticket for the FLUID-5381 issue: http://issues.fluidproject.org/browse/FLUID-5381

This pull request should only be merged into the master branch with a fix for itself.