added support for automatic testing with gradle