Revert "test env fix"

This reverts commit 012f11c295a51429c553a7066f73204602b71b37.
Tear down the environment only once for querysevice_test.py.