added test of server interaction. successfully sends a post request to the server.