Update gradle configuration. testPackageName is deprecated.