Fix gradle unit tests.