WELD-1720 Get rid of warnings in unit tests