handling hackish communication between server and test correctly