Moved test message code after stage.show() and it started wrorking.