Added unit tests. Added Gradle wrapper jar and properties according to the description of the Gradle official document.

http://www.gradle.org/docs/current/userguide/gradle_wrapper.html