tests: avoid spurious failure when gcj is not installed