Added test to fail if portno not specified and throw exception when stop called when server isn't running