StepClick toJson and toCasper unit tests