HSEARCH-472 Adding test for restarting of session factory (currently failing)