Upgrade build.gradle for latest Android Studio.
Add two more test cases for MainActivity.