Added SessionFactory tests.