fixing tests
ensure executor is correctly shutdown