fixing javafx test