title: Could not find method test() for arguments on Android studio project
body: <p>In my Android application, I want exclude some test cases in a package so that I used <code>test</code> task in <code>build.gradle</code> file. for example:</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  test{
       exclude '**/calltest/Summary.class'
  }
  </code></pre>
  
  <p>If sync the project I got following exception:</p>
  
  <pre><code>* What went wrong:
  A problem occurred evaluating project ':SdkModule'.
  &gt; Could not find method test() for arguments [build_4g3vf7b615x3x1p7i9ty0pt1l$_run_closure1@73d026ca] on project ':SdkModule' of type org.gradle.api.Project.
  </code></pre>
  
  <p>If I add <code>apply plugin : 'java'</code></p>
  
  <pre><code>CONFIGURE FAILED in 1s
  The 'java' plugin has been applied, but it is not compatible with the Android plugins.
  </code></pre>
  
  <p>Please help me on this.</p>