more fixes
diff --git a/appveyor.yml b/appveyor.yml
index 7dd3332..337f9c4 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -12,4 +12,6 @@
 
 test_script:
   - dartanalyzer --fatal-warnings example\list.dart lib\pub_cache.dart test\all.dart
+  # We need at least one activated application for our test suite.
+  - pub global activate dart_coveralls
   - dart test\all.dart
diff --git a/test/all.dart b/test/all.dart
index da28344..51a8a08 100644
--- a/test/all.dart
+++ b/test/all.dart
@@ -2,17 +2,8 @@
 // for details. All rights reserved. Use of this source code is governed by a
 // BSD-style license that can be found in the LICENSE file.
 
-import 'dart:io';
-
-import 'package:pub_cache/pub_cache.dart';
-
 import 'pub_cache_test.dart' as pub_cache_test;
 
 void main() {
-  // We need at least one activated application for our test suite.
-  if (new PubCache().getGlobalApplications().isEmpty) {
-    Process.runSync('pub', ['global', 'activate', 'dart_coveralls']);
-  }
-
   pub_cache_test.defineTests();
 }