title: Task with name 'testDebug' not found in project ':module'
body: <p>As of <code>com.android.tools.build:gradle:1.3.0</code> you can run into <code>Task with name 'testDebug' not found in project ':module'.</code></p>
  
  <p>As in the earlier stage of the build environment it was not possible to test library modules properly using Robolectric &amp; Java this workaround was created:</p>
  
  <pre><code>afterEvaluate { project -&gt;
      android.libraryVariants.each { variant -&gt;
          println variant.name
          println tasks
          tasks.getByName("test${variant.name.capitalize()}") {
              dependsOn "assemble${variant.name.capitalize()}"
          }
      }
  }
  </code></pre>
  
  <p>With version 1.3.0 this is broken.</p>