test for server response
made port number configurable
server.start() throws exception when called without portnumber, testing for this plus calls to server.stop() when not running