Added ability to test JavaFX applications even when not started using FXApp