Updating tests to remove deprecated methods.

Also, updated to Gradle 1.10.