Add gradle project and test

* Add gradle staff
* Add test.