fixed tests and fleshed out most of hibernate part