Added test case for #599
Merge branch 'trunk' of https://github.com/impetus-opensource/Kundera into trunk