Adding tests and logging from pursuing TermFactory threading bug