repaired hibernate works
repaired tests