adding hibernate test
(cherry picked from commit 46cc643)