Fix hibernate test errors and the notification test.