refactored turkserver setup and improved unit test reliability