Add hibernate test code