Refactoring and enabled golden ticket test for Java to JSON script