And also do a json output.
useful tests now.