spec: Be less strict on java output

We also comment a pending test in nginx_spec.