add tests

Add tests. Had to use old hbm.xml method since length gets ignored on
new by code stuff