Added tests for NHibernate persistance