1. Installing the server at the beginning of the class and not each test
2. Waiting for install-service to finish
Install the service before all the tests in the class, and uninstall after.
removed unused imports.