Fixes and test cases for #585
Merge branch 'trunk' of https://github.com/impetus-opensource/Kundera into trunk