The start and stop methods are good to go with if we have only one instance of appium server. What if we have multiple appium server launched and we want to stop a particular node. using given code to stop server stops all the servers launched.

After running the code :
Got the following message :
Default test
Tests run: 1, Failures: 0, Skips: 0
So the test ran successfully , but after trying to find if any server is working on port 4723 , using
netstat -vanp tcp | grep 4723 , i got no process running on the port.