add json output (issue #20), also clean up system test