Fix test regression by making pretty printing optional and deriving default show instances.