FLUID-5293: Added a unit test to demonstrate FLUID-5293 issue.

The detail of FLUID-5293 issue: http://issues.fluidproject.org/browse/FLUID-5293

This pull request should be merged into the master with a fix for itself.