upgrade gradle configuration for unit test