fix tests for gradle