Stop test server in endpoint unittest.
Merge pull request #1966 from ddysher/Stop-test-server

Stop test server in endpoint unittest.