test for hibernate