Fix hibernate test