Fix for issue#342, added test case for core
Merge branch 'trunk' of git@github.com:impetus-opensource/Kundera.git into trunk