tests for SessionFactory