FLUID-5512: Added an unit test to demonstrate FLUID-5512 issue.

The related bug report: http://issues.fluidproject.org/browse/FLUID-5512