Small improvements to tests
Reformating to hibernate code style
Missing assert statement in test
Undo reformating of non-changed files
Test suplemented with user type