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