fix tests java