Updated test script for client-server communication