A bunch of Gradle test fixes

```testPackageName``` is deprecated, and has been replaced with ```testApplicationId```.