Added more tests such as session per thread and documentstore per thread