Fixed position of testing code in build.gradle, was causing occasional build errors

Change-Id: I5410891618fd891be1a94835975a00dd075e5cf8
diff --git a/ui/ImmersiveMode/ImmersiveModeSample/build.gradle b/ui/ImmersiveMode/ImmersiveModeSample/build.gradle
index 381127c..9a0e8cb 100644
--- a/ui/ImmersiveMode/ImmersiveModeSample/build.gradle
+++ b/ui/ImmersiveMode/ImmersiveModeSample/build.gradle
@@ -27,7 +27,6 @@
     compileSdkVersion 19
     buildToolsVersion "18.0.1"
 
-
     sourceSets {
         main {
             dirs.each { dir ->
@@ -35,11 +34,9 @@
                 res.srcDirs "src/${dir}/res"
             }
         }
+        instrumentTest.setRoot('tests')
+        instrumentTest.java.srcDirs = ['tests/src']
     }
-
-    instrumentTest.setRoot('tests')
-    instrumentTest.java.srcDirs = ['tests/src']
-
 }
 
 task preflight (dependsOn: parent.preflight) {