Added build.gradle with unit tests

Gradle seems to be how many people are building and testing these days, so this should be helpful to many.