fail test when jfx initialization fails, no endless loop
Merge pull request #2 from dennyisrael/issue_#1_endless_loop_in_headless_envir

fail test when jfx initialization fails, no endless loop