FLUID-5287: Added unit tests to demonstrate FLUID-5287 issue.

The issue detail: http://issues.fluidproject.org/browse/FLUID-5287

This pull request can only be merged in with a fix for itself.