Modified testServerEngine as a Thread implementation