fixed a failure under java 6, silenced regular tests, headless tests