Fixes for Issue#342, added test cases on kundera-core
Merge branch 'trunk' of git@github.com:impetus-opensource/Kundera.git into trunk