added test for json widget, close #59