added a convenience method to plot JSON responses while running tests
fixed the tests after the status/success confusion