Segmentation fault in the ServerTest file, the pointer to the object does not seem to be working