I ported your unit tests into a hibernate-orm based unit test class and in none of the 3 supplied scenarios could I reproduce the problem against the master branch.