Minor improvements, added testing references to build.gradle

Change-Id: I74a6a758035faa4d30c626e0007facd2aba0901e
diff --git a/templates/SingleView/_MODULE_/src/template/res/values/strings.xml.ftl b/templates/SingleView/_MODULE_/src/template/res/values/strings.xml.ftl
index 0abfdc2..d23f046 100755
--- a/templates/SingleView/_MODULE_/src/template/res/values/strings.xml.ftl
+++ b/templates/SingleView/_MODULE_/src/template/res/values/strings.xml.ftl
@@ -15,5 +15,5 @@
         limitations under the License.
 -->
 <resources>
-    <string name="sample_action">${sample.strings.sample_action}</string>
+    <string name="sample_action">${sample.strings.sample_action!"Try it out!"}</string>
 </resources>
diff --git a/templates/base/_MODULE_/build.gradle.ftl b/templates/base/_MODULE_/build.gradle.ftl
index e56edbe..7cb6fd1 100644
--- a/templates/base/_MODULE_/build.gradle.ftl
+++ b/templates/base/_MODULE_/build.gradle.ftl
@@ -48,7 +48,7 @@
 android {
      <#-- Note that target SDK is hardcoded in this template. We expect all samples
           to always use the most current SDK as their target. -->
-    compileSdkVersion 18
+    compileSdkVersion ${sample.compileSdkVersion!18}
     buildToolsVersion "18.0.1"
 
 
@@ -62,6 +62,10 @@
             }
         }
     }
+
+    instrumentTest.setRoot('tests')
+    instrumentTest.java.srcDirs = ['tests/src']
+
 }
 
 task preflight (dependsOn: parent.preflight) {